"use strict";

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = (app) => {
  const { router, controller } = app;

  // 引入页面
  require("./routes/pages/Login")(app); // 登录注册
  require("./routes/pages/Index")(app); // 页面

  // 404 页面
  router.get("*", controller.home.notFound);
};
